//create standard datepicker, for customer datepicker please define manually and create another function datepicker
//field means input type that you want convert to datepicker can be class or id
//min_date limit for minimum date to choose
//max_date limit for maximum date to choose
function datepicker(field, min_date, max_date, year_range)
{
	$(field).datepicker({
		monthNamesShort: [ "Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Agu", "Sep", "Okt", "Nov", "Des" ],
		dayNames: [ "Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu" ],
		dayNamesMin: [ "M", "S", "S", "R", "K", "J", "S" ],
		inline: true,
//		showOn: "both",
//		buttonImage: '/images/ico/calendar.png',
		buttonImageOnly: false,
		showOtherMonths: true,
		selectOtherMonths: true,
		yearRange: year_range,
		minDate: min_date,
		maxDate: max_date,
		changeMonth: true,
		dateFormat: 'yy-mm-dd',
		changeYear :true
	});
}